<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function foo(name,age){
            console.log(this,"姓名是"+name+"年龄是"+age)
        }
        foo()//window

        let obj = {
            name: "张三",
            age: 20
        }
        foo.call(obj,"张三",20)
        foo.apply(obj,["张三", 20])
        foo.bind(obj)("张三",20)
    </script>
</body>
</html>